.footer-modal {
  position: fixed;
  width: 100%;
  bottom: 0;
  vertical-align: middle;
  z-index: 9;
  background: #0f1012;

  .footer-title {
    background: rgba(51, 51, 51, .9);
    width: 100%;
    height: 3.8rem;
    line-height: 3.8rem;
    margin-top: -3.8rem;

    .footer-top {
      position: relative;
      width: 60%;
      font-size: 0;
      margin: 0 auto;
      text-align: center;

      li {
        width: calc(100% / 4);
        max-width: 14.5rem;
        font-size: 1.4rem;
        display: inline-block;
        cursor: pointer;

        span {
          color: #c8c8cc;
        }
      }

      .footer-top-active {
        background: #0f1012;

        span {
          color: #fff;
        }
      }

      .footer-top-close {
        position: absolute;
        right: 1rem;
        color: #FFFFFF;
        font-size: 1.8rem;
        cursor: pointer;
      }
    }
  }

  .div-height {
    width: 100%;
    height: 4rem;
  }

  .modal-content {
    overflow-y: auto;
    background: #0f1012;

    .modal-tab {
      display: none;
    }

    .modal-public {
      width: 60%;
      margin: 0 auto;

      ul {
        font-size: 0;
        height: 13rem;

        li {
          display: inline-block;
          margin: 0 1rem 1rem 0;
          width: calc((100% - 5rem) / 6);

          label {
            position: relative;

            input {
              width: calc((100% - 5rem) / 6);
              height: 5rem;
            }
          }

          img {
            width: 100%;
            max-height: 6.5rem;
            box-sizing: border-box;
          }

        }

        .border-img {
          position: relative;
          border: 1px solid red;
          box-sizing: border-box;
        }

        .border-img:after {
          position: absolute;
          content: url(../img/3.png);
          right: 0;
        }

        li:nth-child(6n) {
          margin-right: 0;
        }
      }
    }

    .modal-color {
    }

    .modal-pic {
    }

    .modal-upload {
      .upload-img {
      }
    }
  }

  .modal-button {
    .button-style {
      width: 60%;
      font-size: 0;
      margin: 2rem auto;
      text-align: center;

      button {
        padding: 0.6rem 3rem;
        font-size: 1.4rem;
        font-weight: bold;
        color: #333333;
        border: none;
        cursor: pointer;
        border-radius: 0.2rem;
        background: #7ecb59;
      }

      button:hover {
        background-color: #6a8390;
      }

      button + button {
        margin-left: 2rem;
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  .section-home-box {
    .footer-modal {
      .footer-title {
        .footer-top {
          width: 80%;
        }
      }

      .modal-content {
        .modal-public {
          width: 80%;
        }
      }
    }
  }
}

@media screen and(max-width: 768px) {
  .modal-content {
    .modal-public {
      width: 80% !important;

      ul {

        li {
          width: calc((100% - 3rem) / 4) !important;
        }

        li:nth-child(6n) {
          margin-right: 1rem !important;
        }

        li:nth-child(4n) {
          margin-right: 0 !important;
        }
      }
    }
  }
}

@media screen and (max-width: 425px) {
  .section-home-box {
    .footer-modal {
      .footer-title {
        .footer-top {
          width: 90%!important;
        }
      }

      .modal-content {
        .modal-pic {
          width: 90%!important;
        }

        .modal-public {
          width: 90% !important;

          ul {

            li {
              width: calc((100% - 2rem) / 3) !important;
            }

            li:nth-child(6n) {
              margin-right: 1rem !important;
            }

            li:nth-child(4n) {
              margin-right: 1rem !important;
            }

            li:nth-child(3n) {
              margin-right: 0 !important;
            }
          }
        }

      }

      .modal-button {
        .button-style {
          width: 90%;
        }
      }
    }
  }
}